#pragma once

#include<stdio.h>
#include<stdlib.h>
#include<string.h>

typedef int data_type;
typedef struct dblink
{
	struct dblink* pPre;
	data_type data;
	struct dblink* pNext;
}DbLink;

enum res
{
	LINKNULL = -3,
	POSERROR,
	EMPTY,
	OK,
};

enum op
{
	TAIL = -1,
	HEAD,
};

DbLink* createDbLink(void);

int insertDbLink(DbLink* pLink, int pos, data_type item);